package com.qc.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {


    private Integer code=200;
	private String msg="";
	private Object token ="";

	public ResultObj(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public static final ResultObj IS_LOGIN = new ResultObj(200,"已登录");
	public static final ResultObj UN_LOGIN = new ResultObj(-1,"未登录");

	public static final ResultObj DELETE_SUCCESS = new ResultObj(200,"删除成功");
	public static final ResultObj DELETE_ERROR = new ResultObj(-1,"删除失败");

	public static final ResultObj UPDATE_SUCCESS = new ResultObj(200,"修改成功");
	public static final ResultObj UPDATE_ERROR = new ResultObj(-1,"修改失败");

	public static final ResultObj ADD_SUCCESS = new ResultObj(200,"添加成功");
	public static final ResultObj ADD_ERROR = new ResultObj(-1,"添加失败");

	public static final ResultObj SHOW_SUCCESS = new ResultObj(200,"查看成功");
	public static final ResultObj SHOW_ERROR = new ResultObj(-1,"查看失败");

	public static final ResultObj DISPATCH_SUCCESS = new ResultObj(200,"分配成功");
	public static final ResultObj DISPATCH_ERROR = new ResultObj(-1,"分配失败");

	public static final ResultObj RESET_SUCCESS = new ResultObj(200,"重置成功");
	public static final ResultObj RESET_ERROR = new ResultObj(-1,"重置失败");

	public static final ResultObj BACK_SUCCESS = new ResultObj(200,"退货成功");
	public static final ResultObj BACK_ERROR = new ResultObj(-1,"退货失败");
}
